package com.hongfeng.support.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.hongfeng.support.model.common.BaseEntity;

/**
 * 
 * <供求信息>
 *
 * @author llc
 * @date 创建时间：2012-12-5 下午04:32:12
 */
@Entity
@Table(name = "buy_info")
public class BuyInfo extends BaseEntity {

	private static final long serialVersionUID = -7903735035864828854L;
	@Id
	@GeneratedValue
	private Long id;
	// 发布人姓名
	@Column(name = "name", length = 100, nullable = false)
	private String name;
	// 供求标题
	@Column(name = "title", length = 100, nullable = false)
	private String title;
	// 供求人联系电话
	@Column(name = "phone", length = 20, nullable = false)
	private String phone;
	// 供求内容
	@Column(name = "content", nullable = false)
	private String content;
	// 供求回复
	@Column(name = "reply", length = 200)
	private String reply;
	// 供求类型
	@ManyToOne
	@JoinColumn(name = "type_id")
	private BuyInfoType buyInfoType;
	// 供求状态
	@Column(name = "state")
	private Short state;
	// 是否页面显示
	@Column(name = "is_show")
	private Short isShow;
	// 排序值
	@Column(name = "pos")
	private Integer pos;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getReply() {
		return reply;
	}

	public void setReply(String reply) {
		this.reply = reply;
	}

	public BuyInfoType getBuyInfoType() {
		return buyInfoType;
	}

	public void setBuyInfoType(BuyInfoType buyInfoType) {
		this.buyInfoType = buyInfoType;
	}

	public Short getState() {
		return state;
	}

	public void setState(Short state) {
		this.state = state;
	}

	public Short getIsShow() {
		return isShow;
	}

	public void setIsShow(Short isShow) {
		this.isShow = isShow;
	}

	public Integer getPos() {
		return pos;
	}

	public void setPos(Integer pos) {
		this.pos = pos;
	}

}
